home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10916 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.inc.net!news
  2. From: Will Flor <willf@rrgroup.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Invoke a outside utility from c program in MS-Window environments
  5. Date: 20 Mar 1996 22:01:42 GMT
  6. Organization: R R Systems Group Inc.
  7. Message-ID: <4ipv86$9jr@news.inc.net>
  8. References: <4inf73$lh@crucis.usc.edu> <4iprk5$ban@B1FF.mindspring.com>
  9. NNTP-Posting-Host: will.rrgroup.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
  14.  
  15. >haiz@crucis.usc.edu (Hai Zhang) wrote:
  16. >
  17. >>Hi,
  18. >
  19. >>I am new to program in MS-Window and have following question:
  20. >
  21. >>I try to write a c application in MS-Windows environment. In one
  22. >>procedure I want user input a file name and compress the corresponding
  23. >>file. I want to use pkzip to do the real job. My question is whether
  24. >>it is possible to invoke a outside utility such as pkzip in MS-Windows.
  25. >>In unix I could use system() function or even execl or execv(). 
  26. >
  27. >>I do not want to buy a separate library package from pkware, since I
  28. >>will only use small part of the compressing utility.
  29. >
  30. >
  31. >>Thanks
  32. >
  33. >>Bing Zhang
  34. >>Dept. of Mechanical Engineering
  35. >>University of Southern California
  36. >
  37.  
  38. Sure, it's possible. WinExec() is the function call, and you can get more 
  39. information on it from (*gasp*) the documentation with your development system 
  40. or a newsgroup such as comp.os.ms-windows.programmer.misc.  There are plenty of 
  41. people there who will be glad to help you, I'm sure.
  42.  
  43. -Will Flor    willf@rrgroup.com
  44. The R R Systems Group, Inc.    http://www.rrgroup.com/
  45.  
  46.  
  47.